import request from '../../../components/Request';


export async function listDept(orgId) {
  let result = await request.post({
    url: './dept/listDept.do',
    data: { orgId: orgId },
  });
  return result.data;
}

export async function listDeptByParentId(parentId) {
  let result = await request.post({
    url: './dept/listDeptByParentId.do',
    data: { parentId: parentId },
  });
  return result.data;
}
